//
//  Common.swift
//  WHYWeibo-1.0
//
//  Created by 王洪运 on 15/11/23.
//  Copyright © 2015年 王洪运. All rights reserved.
//


// 设置全局共享信息
import UIKit

/// 选中图片索引 key
let WHYWBStatusSelectedPhotoIndexPathKey = "WHYWBStatusSelectedPhotoIndexPathKey"
/// 选中图片 URL 数组key
let WHYWBStatusSelectedPhotoURLKey = "WHYWBStatusSelectedPhotoURLKey"
/// 选中图片通知
let WHYWBStatusSelectedPhotoNotification = "WHYWBSelectedPhotoNotification"
/// 发送微博通知
let WHYWBSendStatusNotification = "WHYWBSendStatusNotification"
///  界面选择通知
let WHYWBSwitchViewControllerNotification = "WHYWBSwitchViewControllerNotification"

/// 全局显示的渲染颜色通知
let WHYWBAppearanceTintColor = UIColor.orangeColor()

func delay (delta: NSTimeInterval, callFunc: () -> ()) {
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, Int64(delta * NSTimeInterval(NSEC_PER_SEC))), dispatch_get_main_queue()) { () -> Void in
        callFunc()
    }
}

